package com.company.设计模式.单例模式;

/**
 * @author uguoy089
 * @Description:
 * @Date: 2021/5/11 09:08
 */

public enum Singleton5 {

    INSTANCE("枚举类");

    private String msg;

    Singleton5(String msg) {
        this.msg = msg;
        System.out.println(getMsg());
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void doOtherSomeThing() {
    }
}
